<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="perm" uri="/WEB-INF/tld/perm.tld"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
<script>
	var ctx = "${ctx}";
</script>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>我的档案</title>
<meta name="description" content="">
<meta name="keywords" content="">
<!-- 基础样式 -->
<link href="${ctx}/static/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">    
<link href="${ctx}/static/css/font-awesome.min.css?v=1" rel="stylesheet">	
<link href="${ctx}/static/css/iconfont.css?v=4" rel="stylesheet">
<link href="${ctx}/static/css/animate.min.css" rel="stylesheet">
<!-- laydate --> 	
<link href="${ctx}/static/js/plugins/layer/laydate/need/laydate.css" rel="stylesheet" >
<link href="${ctx}/static/js/plugins/layer/laydate/skins/default/laydate.css" rel="stylesheet">
<!-- 插件样式 -->
<link href="${ctx}/static/css/plugins/toastr/toastr.min.css" rel="stylesheet">
<link href="${ctx}/static/css/plugins/webuploader/webuploader.css" rel="stylesheet">

<link href="//at.alicdn.com/t/font_zwgrtnv3xdtv5cdi.css"
	rel="stylesheet">
<link href="${ctx}/static/css/style.min.css" rel="stylesheet">	
<link href="${ctx}/static/css/common.css" rel="stylesheet" />
</head>
<body>
<body class="gray-bg">	
	<div class="wrapper wrapper-content  animated fadeInRight">

   		<div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
               		<!-- 修改基本资料 -->
                    <div class="ibox-title">
                        <h5>我的档案 &nbsp;&nbsp;&nbsp;&nbsp;<small>基本资料修改</small></h5>
                    </div>
                     <div class="ibox-content">
                        <form id="userform" action="${ctx}/member_update" method="post" class="form-horizontal">
                        	
							<input type="hidden" name="cid" value="${member.c_id}" />				                        
                            <div class="form-group">
                                <label class="col-sm-2 control-label">当前头像</label>
                                <div class="col-sm-10">
									<div id="fileList_avatar" class="col-sm-2 fl uploader-list">
										<c:if test="${!empty member.c_avatar}">
											<div class="file-item">
												<img style="height: 100px;" src="${member.c_avatar}" />
												<div class="info"></div>
											</div>
										</c:if>
										<c:if test="${member.c_avatar==''||empty member.c_avatar}"> <img style="height: 100px;" src="${ctx}/static/img/default_head.png" /></c:if>												
									</div>
									<div class="fl col-sm-2">
										<a id="filePicker_avatar" >
											<i class="iconfont icon-plus1"></i>
										</a>
									</div>
									<div class="col-sm-5"><input type="hidden" value="${member.c_avatar}" id="cavatar" name="cavatar" datatype="*" nullmsg="不能为空"></div>
								</div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">昵称</label>
                                <div class="col-sm-10 m-l-n">
                                    <div class="col-sm-5"><input type="text" class="form-control" name="cnick" value="${member.c_nick}" placeholder=" 请输入昵称" ></div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">真实姓名</label>
                                <div class="col-sm-10 m-l-n">
                                   <div class="col-sm-5"> <input type="text" class="form-control" name="ctname" value="${member.c_tname}" placeholder=" 请输入真实姓名 " ></div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">性别</label>
                                <div class="col-sm-10">
                                            <input type="radio" <c:if test="${member.c_sex=='男'}">checked="checked"</c:if> value="男" id="optionsRadios1" name="csex"> 男                                
                                        &nbsp;&nbsp;
                                            <input type="radio" <c:if test="${member.c_sex=='女'}">checked="checked"</c:if> value="女" id="optionsRadios2" name="csex"> 女 
								                                 
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">生日</label>
                                <div class="col-sm-10 m-l-n">
	                                 <div class="col-sm-5"><input class="form-control" name="cbirthday" value="${member.c_birthday}" onclick="new WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})" ></div>
	                              
	                                
	                                <input type="hidden" value="${member.c_birthday}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">居住地</label>
                                <div class="col-sm-10 m-l-n">
                                
                                     <div class="col-sm-5" style="margin-bottom:10px;"><input type="text" name="ccity" value="${member.c_city}" placeholder="城市" class="form-control" /"></div>
														<div class="col-sm-5"  style="margin-bottom:10px;"><input type="text" name="carea" placeholder="区/县" value="${member.c_area}" class="form-control" /></div>
                                   <div class="col-sm-7"> <textarea name="caddress"  class="form-control" style="width: 70%;">${member.c_address}</textarea>             </div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">手机号</label>
                                <div class="col-sm-10 m-l-n">
                                    <div class="col-sm-5"> <input type="text" id="mobile" class="form-control" name="cmob" value="${member.c_mob}" placeholder=" 请输入手机号" ></div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                                                                                                                                                                    
                            <div class="form-group">
                                <label class="col-sm-2 control-label">邮箱</label>
                                <div class="col-sm-10 m-l-n">
                                    <div class="col-sm-5"> <input type="text" id="email1" class="form-control"  name="cmail" value="${member.c_mail}" placeholder=" 有效的邮箱地址 " ></div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                            <div class="form-group">
                            	<label class="col-sm-2"></label>
                                <div class="col-sm-10">
                                    <button class="btn btn-primary col-sm-2" type="button" onclick="return save()">保存</button>&nbsp;&nbsp;
                                    <button class="btn btn-white">取消</button>
                                </div>
                            </div>     					
				                            
                          </form>
                      </div>
                      <!-- /ibox-content -->
                      
                 </div>
              </div>
          </div>
        		
	</div>
	<!--end-->	

	<script src="${ctx}/static/js/jquery.min.js"></script>
	<script src="${ctx}/static/js/plugins/dataTables/jquery.dataTables.js"></script>
    <script src="${ctx}/static/js/plugins/dataTables/dataTables.bootstrap.js"></script>     
	<script src="${ctx}/static/js/member.userinfo.js"></script>	
    <!-- 插件脚本 -->
    <script src="${ctx}/static/js/plugins/toastr/toastr.min.js"></script>
 <script src="${ctx}/static/js/plugins/layer/layer.js?v=${static_version}"></script>
   	<script src="${ctx}/static/js/plugins/webuploader/0.1.5/webuploader.min.js"></script>
   	<script src="${ctx}/static/js/My97DatePicker/WdatePicker.js?v=${static_version}"></script>
   	<script src="${ctx}/static/js/region/js/city-picker.data.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/region/js/city-picker.js?v=${static_version}"></script>
  
</body>
</html>